Skip to content

[ENG-10788] add nodes and preprints files reinding on account merging#11727

Open
mkovalua wants to merge 2 commits intoCenterForOpenScience:feature/pbs-26-9from
mkovalua:fix/ENG--10788
Open

[ENG-10788] add nodes and preprints files reinding on account merging#11727
mkovalua wants to merge 2 commits intoCenterForOpenScience:feature/pbs-26-9from
mkovalua:fix/ENG--10788

Conversation

@mkovalua
Copy link
Copy Markdown
Contributor

@mkovalua mkovalua commented May 5, 2026

Ticket

Purpose

User merge does not seem to be working for files

Changes

Adding nodes and preprints files reinding on account merging

Also some updates for SHARE is good to have

CenterForOpenScience/SHARE#892

Side Effects

File indexing does not work for local setup, so maybe it is needed add something else because something may be missed because of a bit blame fix

image

QE Notes

CE Notes

Documentation

@mkovalua mkovalua changed the title add nodes and preprints files reinding on account merging [ENG-10788] add nodes and preprints files reinding on account merging May 5, 2026
Copy link
Copy Markdown
Contributor

@antkryt antkryt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small import fix

Comment thread osf/models/user.py

from django.contrib.contenttypes.models import ContentType
from osf.models import AbstractNode, Preprint
from addons.osfstorage.models import OsfStorageFile
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can move django and addon imports to the top of the file. Circular import error should not occur in this case I think

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circular import errors exist from my side for

  from django.contrib.contenttypes.models import ContentType
  from osf.models import AbstractNode, Preprint
image image

@antkryt
Copy link
Copy Markdown
Contributor

antkryt commented May 8, 2026

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants